'''
PyQt5查询所有可用的字体
'''

from PyQt5.QtGui import QFontDatabase
from PyQt5.QtWidgets import QApplication
import sys

app = QApplication(sys.argv)
font_database = QFontDatabase()
fonts = font_database.families()

for font in fonts:
    print(font)